package com.gpframework.module.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和角色关联 sys_user_role
 *
 * @Author gpframework
 */
public class SysUserRole {
    /**
     * 用户ID
     */
    @TableId
    private Long brandUserId;

    /**
     * 角色ID
     */
    @TableId
    private Long brandRoleId;

    /**
     * 品牌id
     */
    @TableId
    private Long brandId;

    public Long getBrandUserId() {
        return brandUserId;
    }

    public void setBrandUserId(Long brandUserId) {
        this.brandUserId = brandUserId;
    }

    public Long getBrandRoleId() {
        return brandRoleId;
    }

    public void setBrandRoleId(Long brandRoleId) {
        this.brandRoleId = brandRoleId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public SysUserRole() {
    }

    public SysUserRole(Long brandUserId, Long brandRoleId, Long brandId) {
        this.brandUserId = brandUserId;
        this.brandRoleId = brandRoleId;
        this.brandId = brandId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getBrandUserId())
                .append("roleId", getBrandRoleId())
                .append("brandId", getBrandId())
                .toString();
    }
}
